package cn.house.rent.service;

import cn.house.rent.entity.User;
import cn.house.rent.utils.Result;
import cn.house.rent.vo.UserVo;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public interface UserService {

    Result login(UserVo userVo, HttpServletResponse resp, HttpSession session);

    Result registerCheck(String userName);

    Result register(User user, String captcha, HttpSession session);

    //查询菜单
    Result selectMenu(User user);

    //根据条件查询查询用户信息
    Result selectUserInfos(UserVo userVo);

    //邮箱是否注册
    Result emailCheck(String userName);

    //根据用户id更改用户信息
    Result updateUser(User user);

    //根据id修改用户密码
    Result updatePwd(UserVo userVo, User user);

    //根据id修改用户头像
    int updateUserImg(User user);

    //用户管理  添加用户
    Result addUser(UserVo userVo);

    //用户管理  重置用户密码
    Result resetUser(UserVo userVo);

    //用户管理  删除用户  批量删除用户
    Result delUser(UserVo userVo);

    //找回密码
    Result forget(UserVo userVo);
}
